//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Jordan World Circus','Heritage Center Theater at Cam-Plex','Gillette, WY','Monday','4/29/2024','4:30 PM','6367352','Jordan-World-Circus-4-29-2024'],['Jordan World Circus','Heritage Center Theater at Cam-Plex','Gillette, WY','Monday','4/29/2024','7:30 PM','6367353','Jordan-World-Circus-4-29-2024'],['Cam Girl','The Nick','Birmingham, AL','Thursday','5/16/2024','9:00 PM','6210813','Cam-Girl-5-16-2024'],['Cam Allen','Beer City Music Hall','Oklahoma City, OK','Saturday','6/15/2024','8:00 PM','6389562','Cam-Allen-6-15-2024'],['Cam Bertrand ','Funny Bone Comedy Club - Columbus','Columbus, OH','Wednesday','7/24/2024','7:00 PM','6286659','Cam-Bertrand--7-24-2024'],['Cam Bertrand ','Funny Bone Comedy Club - Toledo','Perrysburg, OH','Sunday','7/28/2024','6:00 PM','6285387','Cam-Bertrand--7-28-2024'],['Cam Gallagher and The Tasty Soul','Soundwell','Salt Lake City, UT','Wednesday','7/31/2024','8:00 PM','6246504','Cam-Gallagher-and-The-Tasty-Soul-7-31-2024'],['Casey Donahew & Cam Allen','Cowley County Fair At Winfield Fairgrounds','Winfield, KS','Friday','8/2/2024','7:30 PM','6292362','Casey-Donahew---Cam-Allen-8-2-2024'],['Cam'ron','Fortune Sound Club','Vancouver, Canada','Sunday','4/20/2070','TBD','4412196','Cam-ron-4-20-2070'],['Cam','Troubadour','West Hollywood, CA','Wednesday','6/18/2070','TBD','4440273','Cam-6-18-2070']],'"Cam"','https://www.ticketnetwork.com');